package net.roobook.cms.modules.admin.service;

import net.roobook.cms.common.service.CrudService;
import net.roobook.cms.modules.admin.dao.SysSettingMapper;
import net.roobook.cms.modules.admin.entity.SysSetting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cos
 * @email 327878610@qq.com
 * @link https://roobook.net
 * @Description 系统设置Service
 * @date 2023/10/11 8:39
 **/
@Service
public class SysSettingService extends CrudService<SysSettingMapper, SysSetting> {
    @Autowired
    private SysSettingMapper sysSettingMapper;

    /**
     * 系统设置列表
     */
    public SysSetting getSystem() {
        SysSetting setting = sysSettingMapper.getCurrentSystem();
        return setting;
    }

}
